package com.foreknow.demo27;

public class Person {
    int age;
    public static void add(int i){
        i++;
        System.out.println(i);
    }
    public static void add(Person p){
        p.age++;
        System.out.println("    "+p.age);
    }

    public static void main(String[] args) {
        int i = 10;
        Person p = new Person();
        p.age = 10;
        add(i);
        add(p);
        System.out.println(i);
        System.out.println(p.age);
    }
}
